package org.xxmi.cors.common.map;

/**
 * 此类表示地理坐标的矩形区域
 * 
 * @description
 * @author xxmi.org
 * @version v1.0.0
 * @date 2016年6月23日-下午9:23:58
 */
public class Bounds {

	private Point swPoint;
	private Point nePoint;

	public Bounds() {
	}

	/**
	 * @param swLng
	 *            西南脚点-经度
	 * @param swLat
	 *            西南脚点-纬度
	 * @param neLng
	 *            东北脚点-经度
	 * @param neLat
	 *            东北脚点-纬度
	 */
	public Bounds(double swLng, double swLat, double neLng, double neLat) {
		swPoint = new Point(swLng, swLat);
		nePoint = new Point(neLng, neLat);
	}

	public Point getSwPoint() {
		return swPoint;
	}

	public void setSwPoint(Point swPoint) {
		this.swPoint = swPoint;
	}

	public Point getNePoint() {
		return nePoint;
	}

	public void setNePoint(Point nePoint) {
		this.nePoint = nePoint;
	}

	/**
	 * 西南脚点
	 * 
	 * @return
	 */
	public Point getSouthWest() {
		return swPoint;
	}

	/**
	 * 东北脚点
	 * 
	 * @return
	 */
	public Point getNorthEast() {
		return nePoint;
	}

}
